package com.spring.proxy.jdk;

public class Client {

	public static void main(String[] args) {
		Personable proxy=(Personable) new MyProxy(new PersonImpl()).getInstance();
		proxy.eat();
		System.out.println("----------------------");
		System.out.println(proxy.sayHello("xiao ming"));
	}

}
